﻿using BLL;
using Model;
using System;
using System.Collections.Generic;

namespace Thksoft.UserCotrols
{
    public partial class CtrlYearDepartment : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            QX_PLANYEAR_DEPARTMENTBLL planYearDepartmentBll = new QX_PLANYEAR_DEPARTMENTBLL();
            //BUSINESS_ID 转 ApplayId
            QX_PLANYEARAPPLYBLL planYearApplyBll = new QX_PLANYEARAPPLYBLL();
            var bid = Request.Params.Get("BusinessId");
            var applay = planYearApplyBll.FindByBuid(Convert.ToDecimal(bid));
            Model = planYearDepartmentBll.Exites((int)planYearDepartmentBll.User.USER_ID, (int)applay.N_YEARAPP_ID);
            ApplyId = applay.N_YEARAPP_ID.ToString();
            UserId = planYearDepartmentBll.User.USER_ID.ToString();
        }

        public List<QX_PLANYEAR_DEPARTMENT> Model = null;

        protected void ReLoadBtn_Click(object sender, EventArgs e)
        {
        }

        public string ApplyId;
        public string UserId;
    }
}